TResult
The return type of the column value.
Platform Core .NET Assemblies API
ExecuteScalar<TResult>() Method
See Also  Send Feedback
Terrasoft.Core.DB Namespace > Select Class > ExecuteScalar Method : ExecuteScalar<TResult>() Method

Glossary Item Box

Executes the current select query and returns the typed first column of the first record of the resulting set returned by the query.

Syntax

 
C#
 
 

Type Parameters

TResult
The return type of the column value.

Return Value

The first column of the first record in the resulting set of the TResult type.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.